import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/print_not_single_entry_details_entity.dart';
import 'package:library_base/entities/print_single_entry_details_entity.dart';
import 'dart:convert';

import 'generated/json/print_detail_entity.g.dart';

@JsonSerializable()
class PrintDetailEntity {

  late String shipperName;
  late String orderNumber;
  late String consignee;
  late String mobilePhone;
  late String address;
  late String shortAddress;
  late String carNo;
  late String stationTime;
  late List<PrintSingleEntryDetailsEntity> singleEntryDetails;
  late List<PrintNotSingleEntryDetailsEntity> notSingleEntryDetails;

  PrintDetailEntity();

  factory PrintDetailEntity.fromJson(Map<String, dynamic> json) => $PrintDetailEntityFromJson(json);

  Map<String, dynamic> toJson() => $PrintDetailEntityToJson(this);

  @override
  String toString() => json.encode(this);
}
